import type { DictItem } from '@/types/common/dict'

/**
 * 模拟字典数据
 */
export const getDictByTypeService = async (
  dictType: string,
): Promise<DictItem[]> => {
  console.log('getDictByType', dictType)
  return new Promise(resolve => {
    setTimeout(() => {
      resolve([
        {
          id: 1,
          code: '1',
          label: '字典1',
          value: '1',
        },
        {
          id: 2,
          code: '2',
          label: '字典2',
          value: '2',
        },
      ])
    }, 500)
  })
}
